#ifndef _WORKTHREAD_H
#define _WORKTHREAD_H
#include "thread.h"
#include "Threadpool.h"
class WorkThread : public Thread
{
public:
    WorkThread(Threadpool &threadpool)
        : _threadpool(threadpool)
    {
    }
    void run() override
    {
        _threadpool.doTask();
    }

private:
    Threadpool &_threadpool;
};

#endif
